/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarDetailDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarDetailInterface {

    ArrayList<CarDetailDTO> readByAll();

    CarDetailDTO findById(int id);

    ArrayList<CarDetailDTO> findByCarId(int id);

    boolean create(CarDetailDTO dto);

    boolean update(CarDetailDTO dto);

    boolean delete(int id);

    boolean deleteCarId(int carId);

    boolean delete(CarDetailDTO dto);
}
